<?php
session_start();
$cat_title =   $_POST['cat_name'];

include "db_connect.php";
$cat_add = "INSERT INTO `category` (`id` ,`name` )
            VALUES (NULL,  '$cat_title' )";

if (mysql_query($cat_add))
        header ("location:../admin.php?page=cat_list");
    else {
        mysql_error();
        die("Category Insert Failed");
         }

?>
